<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>操作值</title>
    <script type="text/javascript" src="../js/jquery-1.7.2.js"></script>
    <script type="text/javascript">
        $(function () {
            $("#btnId").click(function () {
                //$("ul").append($("<li>DDD</li>"));
                //$("ul").prepend("<li>XXX</li>");
                //$("ul").after("<li>外部追加</li>");
                //$("ul").before("<li>外部前置</li>");
                //$("ul").empty();
                //$("ul").remove();
                //获取div的高度
                //alert($("div").css("height"));
                $("div").css("height","500px");
            });
        });
    </script>
</head>
<body>
    <ul>
        <li>AAA</li>
        <li>BBB</li>
        <li>CCC</li>
    </ul>
    <br>
    <input type="button" value="点击" id="btnId">
    <div style="width: 100px; height: 100px; background-color: red;"></div>
</body>
</html>